<?php
/**
 * Created by PhpStorm.
 * User: august
 * Date: 2021/5/19
 * Time: 18:22
 */

namespace DesignPatterns\Structure\Flyweight;

/**
 * 不共享的具体享元类
 * Class UnsharedConcreteFlyweight
 * @package DesignPatterns\Structure\Flyweight
 */
class UnsharedConcreteFlyweight extends Flyweight
{
    public function show($content)
    {
        echo '不共享的享元： ' . $this->name . '--' . $content . "'\n";
    }

    public function delete()
    {
        $this->name = '';
    }
}